﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DiamondDesktop.Presenters;

namespace DiamondDesktop.Views
{
    /// <summary>
    /// Interaction logic for CountView.xaml
    /// </summary>
    public partial class CountView : UserControl
    {
        public CountView(CountPresenter presenter)
        {
            InitializeComponent();
            DataContext = presenter;
        }

        //显示任务完成情况
        public void showSummary(Summary summary) {
            this.l_all.Content = summary.tasksCount;
            LB_totalcountmust.Content = summary.mustFinishCount;
            LB_undocount.Content = summary.tasksCount - summary.finishedCount;
            LB_undocountmust.Content = summary.mustFinishCount - summary.finishedMustCount;

        }
    }
}
